package com.hornsun.data.repository;

import com.hornsun.data.dbo.Permission;
import com.hornsun.data.dbo.PermissionExample;
import com.hornsun.data.repository.mapper.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 编译中... on 2018/7/11.
 */
@Repository
public class PermissionRepository {
    @Autowired
    private PermissionMapper permissionMapper;

    public List<Permission> getTotal(){
        return permissionMapper.selectByExample(new PermissionExample());
    }
}
